// 对外暴露路由(常量路由)
export const constantRoute = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login', // 命名路由
    component: () => import('@renderer/views/login/index.vue'),
    meta: {
      title: '登录页面',
    },
  },
  {
    path: '/app',
    name: 'app',
    redirect: '/app/setting',
    component: () => import('@renderer/views/app/index.vue'),
    meta: {
      title: '软件首页',
    },
    children: [
      {
        path:'/app/setting',
        name: 'setting',
        component: ()=>import('@renderer/views/app/setting/index.vue')
      },
      {
        path:'/app/shooting',
        name: 'shooting',
        component: ()=>import('@renderer/views/app/shooting/index.vue')
      },
      {
        path:'/app/result',
        name: 'result',
        component: ()=>import('@renderer/views/app/result/index.vue')
      },
      {
        path:'/app/softwareInfo',
        name: 'softwareInfo',
        component: ()=>import('@renderer/views/app/softwareInfo/index.vue')
      },
    ]
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@renderer/views/unfound404/index.vue'),
    meta: {
      title: '404界面',
    },
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'any',
    redirect: '/404',
  },
]
